<!doctype html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title></title>
    <meta name="format-detection" content="telephone=no" />
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/common.css" />
    <style>
        /* 头部样式 */

        .topbar {
            background: #3A8B7A;
            height: 50px;
            border-bottom: 1px solid #DDDFE3;
        }

        #title {
            color: #FFF;
        }

        .swipe {
            line-height: 50px;
            margin-right: 10px;
            color: #FF8400;
        }

        .back {
            float: left;
            padding-right: 30px;
        }

        .back img {
            height: 30px;
            margin-top: 10px;
            margin-left: 10px;
            margin-bottom: 10px;
        }

        .topbar .title {
            line-height: 50px;
            font-size: 22px;
            position: absolute;
            left: 50%;
            -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
        }

        .right {
            float: right;
            padding-left: 30px;
        }

        .right img {
            height: 30px;
            margin-top: 10px;
            margin-right: 10px;
            margin-bottom: 10px;
        }
    </style>
</head>

<body>
    <div id="wrap">
        <div class="titlebar activebar">
            <div id="header" class="topbar whitebar">
                <div class="back" tapmode="" onclick="api.closeWin();"><img src="../image/btn/back.png" alt=""></div>
                <div class="title" id="title"></div>
                <div id="right" class="right"></div>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/alpenlicebe.js"></script>
<script type="text/javascript" src="../script/zepto.min.js"></script>
<script type="text/javascript" src="../script/hashes.min.js"></script>
<script type="text/javascript">
    apiready = function() {
        header = $api.byId('header');
        $api.fixIos7Bar(header);
        headerOffset = $api.offset(header);

        // var height = 50;
        //  	if("ios" == api.systemType && parseInt(api.systemVersion) >= 7){
        //      	height = parseInt(height)+20;
        //   	}

        var infoID = api.pageParam.infoID;
        if ('' == infoID || undefined == infoID || null == infoID) {
            api.alert({
                title: '系统提示',
                msg: '参数错误1'
            });
            return;
        }
        var goType = api.pageParam.goType;
        if (1 != goType && 2 != goType && 3 != goType && 4 != goType) {
            api.alert({
                title: '系统提示',
                msg: '参数错误2'
            });
            return;
        }
        var winName = '';
        if (1 == goType) {
            winName = 'yq_listDetail_Deal_Going';
            $("#title").html("转办");
        } else if (3 == goType) {
            winName = 'yq_listDetail_Deal_Check';
            $("#title").html("审核");
        } else if (4 == goType) {
            winName = 'yq_listDetail_Deal_Checkturn';
            $("#title").html("驳回");
        } else {
            winName = 'yq_listDetail_Deal_End';
            $("#title").html("处置反馈");
        }
        if ('' != winName) {
            api.openFrame({
                name: winName,
                url: winName + '.html',
                rect: {
                    x: 0,
                    y: headerOffset.h,
                    w: 'auto',
                    h: 'auto'
                },
                allowEdit: true,
                pageParam: {
                    infoID: infoID
                },
                delay: 200,
                bounces: true,
                reload: true,
                showProgress: 'true'
            });
        }
    }
</script>

</html>
